<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
%>
<h2 class="contentTitle">修改开销记录</h2>


<div class="pageContent">
	
	<form method="post" action="<%=path %>/expenditure/modify.do" class="pageForm required-validate" onsubmit="return validateCallback(this)">
		<div class="pageFormContent nowrap" layoutH="97">
			<input type="hidden" value="${expenditure.id }" name="id"/>
			<input type="hidden" value="${expenditure.status }" name="status"/>
			<dl>
				<dt>员工：</dt>
				<dd>
					<input type="hidden" name="employee.id" class="required" value="${expenditure.employee.id}"/>
					<input type="text"   name="employee.name" value="${expenditure.employee.name}" class="required" readonly="readonly"/>
					<a class="btnLook" href="<c:url value="/employee/lookuplist.do"/>" lookupGroup="employee">员工</a>
				</dd>
			</dl>
			<dl>
				<dt>类型：</dt>
				<dd>
					<input type="hidden" name="type.id" class="required"  value="${expenditure.type.id}"/>
					<input type="text"  name="type.description" value="${expenditure.type.description}" class="required" readonly="readonly"/>
					<a class="btnLook" href="<c:url value="/expenditureType/lookuplist.do"/>" lookupGroup="type">开销类型</a>
				</dd>
			</dl>
			<dl>
				<dt>金额：</dt>
				<dd>
					<input type="text" name="money" value="${expenditure.money}" class="number"/>
				</dd>
			</dl>
			<dl>
				<dt>原因：</dt>
				<dd>
					<input type="text" name="reason" value="${expenditure.reason}" class="required"/>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>备注：</dt>
				<dd>
					<textarea name="remark" cols="60" rows="2" >${expenditure.remark}</textarea>
				</dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>